import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

// 获取角色表
export const GetRoleList = (params: any = { status: 0 }) => {
  return Http.get(PORT1 + "/system/role/list", params);
};

export const EditRole = (params: any) => {
  return Http.put(PORT1 + "/system/role/edit", params);
};

export const AddRole = (params: any) => {
  return Http.post(PORT1 + "/system/role/add", params);
};

export const changePower = (params: any) => {
  return Http.post(PORT1 + "/system/role/power", params);
};
